#include "common/ad_exception.h"

AdException::AdException(const char* what) noexcept
    : std::exception{}, msg_{what} {}

AdException::AdException(std::string const& what) noexcept
    : std::exception{}, msg_{what.c_str()} {}

AdException::AdException(std::string&& what) noexcept
    : std::exception{}, msg_{what.c_str()} {}

const char* AdException::what() const noexcept { return msg_.c_str(); }
